package com.gxa.mall.model;


import org.springframework.stereotype.Component;

/**
 * 用户信息:账号,密码,邮箱
 */

@Component
public class Admin {
    private Integer id;
    private String account;
    private String password;
    private String email;
    private String token;
    //真实姓名
    private String name;
    private String phonenum;
    private String sex;
    //座右铭
    private String motto;


    public Admin() {
    }

    public Admin(Integer id, String account, String password, String email, String token, String name, String phonenum, String sex, String motto) {
        this.id = id;
        this.account = account;
        this.password = password;
        this.email = email;
        this.token = token;
        this.name = name;
        this.phonenum = phonenum;
        this.sex = sex;
        this.motto = motto;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhonenum() {
        return phonenum;
    }

    public void setPhonenum(String phonenum) {
        this.phonenum = phonenum;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getMotto() {
        return motto;
    }

    public void setMotto(String motto) {
        this.motto = motto;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String emil) {
        this.email = emil;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getPassword() {
        return password;
    }

    @Override
    public String toString() {
        return "Admin{" +
                "id=" + id +
                ", account='" + account + '\'' +
                ", password='" + password + '\'' +
                ", email='" + email + '\'' +
                ", name='" + name + '\'' +
                ", phonenum='" + phonenum + '\'' +
                ", sex='" + sex + '\'' +
                ", motto='" + motto + '\'' +
                '}';
    }

    public void setPassword(String password) {
        this.password = password;
    }

}
